#倒库
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
#识别数据
df=pd.read_excel('某店铺促销方式分析.xlsx')
plt.rcParams['font.sans-serif']='SimHei'
#穿件画布
plt.Figure(figsize=(8,4))
plt.pie(x=df['购买人数'],labels=df['促销方式'],autopct='%.2f%%',
        startangle=90,counterclock=False,
        wedgeprops={'linewidth':1,'edgecolor':'white'})
#标签
plt.title('斌图')
#展示
plt.show()